package com.xxx.blog.mapper;

import com.xxx.blog.domain.Article;
import com.xxx.blog.query.ArticleQuery;
import com.xxx.blog.vo.ArchiveVo;

import java.util.List;

public interface ArticleMapper {
    List<Article> findAll();
    Article findOne(Long id);
    List<Article> queryPage(ArticleQuery articleTypeQuery);
    void addArticle(Article articleType);
    void updateArticle(Article articleType);
    void deleteArticle(Long id);
    void batchArticles(Long[] ids);

    List<ArchiveVo> archive();
    List<Article> findRelateArticles(Long id);
}
